package pcb.views.library
{
	import flash.display.MovieClip;
	import flash.events.Event;	
	import pcb.views.uievents.SlideEvent;
	import com.intel.utils.Debugger;
	
	/**
	 * ...
	 * @author ...
	 */
	public class Slide extends MovieClip
	{		
		public function Slide() 
		{
			Debugger.traceOut("new slide ani");
			//super();
		}
		
		public override function stop():void {
			if (this.currentFrame == this.totalFrames) {
				this.slideComplete();
			}
			super.stop();
		}
		
		public function slideComplete():void 
		{
			dispatchEvent(new Event(SlideEvent.ANIMATION_ENDED, true));
		}		
	}
	
}